<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
	<title>u修饰符</title>
	<style type="text/css">
	* {
		padding: 0;
		margin: 0;
	}
	span.red{
		color: red;
	}
    </style>
</head>
<body>
	<div class="container" id="container">
		<h1>u修饰符</h1> 
		<p>如L属性表示是字母，P 表示标点符号</p>
	</div>
	<script src="../tools/utils.js"></script>
	<script type="text/javascript">
		//使用\p{L}属性匹配字母
		var hd = "houdun,ren2010.不断发布教程， good加油！";
		console.log(hd.match(/\p{L}+/ug));
		console.log(hd.match(/\p{P}+/ug));
		console.log(hd.match(/\p{sc=Han}+/ug));

	</script>
</body>
</html>